package crmdna.interaction;

import static crmdna.common.AssertUtils.ensureNotNull;

import java.util.Date;

public class SubInteractionProp implements Comparable<SubInteractionProp> {
	public long subInteractionId;
	public Date timestamp;
	public String content;

	@Override
	public int compareTo(SubInteractionProp o) {
		// sort in descending order of time
		ensureNotNull(timestamp);
		ensureNotNull(o.timestamp);

		return o.timestamp.compareTo(timestamp);
	}
}
